import { createPinia } from 'pinia'
import { useUserStore } from './modules/user'
import { useTodoStore } from './modules/todo'

// pinia持久化存储
import piniaPluginPersist from 'pinia-plugin-persist'

const pinia = createPinia()
pinia.use(piniaPluginPersist)

// 优化：自动化模块导入
export { useUserStore, useTodoStore }
export default pinia
